package Entities;

import java.io.Serializable;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Fetch;
import org.hibernate.annotations.FetchMode;
import org.hibernate.annotations.LazyCollection;
import org.hibernate.annotations.LazyCollectionOption;

@Entity
@Table(name="Salones")
public class Entity_Salon implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue
	@Column(name = "id_salon")
	private int idsalon;
	@OneToMany(cascade = CascadeType.ALL)
	@JoinColumn(name="id_salon")
	@LazyCollection(LazyCollectionOption.FALSE)
	private List<Entity_Sector> sectores;
	
	public List<Entity_Sector> getSectores() {
		return sectores;
	}

	public void setSectores(List<Entity_Sector> sectores) {
		this.sectores = sectores;
	}

}
